<template>
<h1>我是第一个Vue组件</h1>
  <p>{{info}}</p>
  <h4>{{info+'中午好'}}</h4>
  {{info}}
  <hr>
  <button @click="f">按钮</button>
  <hr>
  <p>{{info2}}</p>
  <p v-text="info2"></p>
  <p v-html="info2"></p>
  <hr>
  <p>计数：{{count}}</p>
  <button @click="f2">技术</button>
</template>

<script setup>
import {ref} from "vue";

const info=ref('我是info666');
const info2=ref('今<b>天</b>中午<mark>吃什么</mark>？');

const f=()=>{
  console.log(info.value);
}
const count=ref(0);
const f2=()=>{
  count.value++;
}
</script>

<style scoped>

</style>